<?php
class FamilymembersModel extends Orm_Base{
    public $table = 'family_members';
    public $field = array(
        'id' => array('type' => "int(11) unsigned",'comment' => ''),
        'sid' => array('type' => "int(11) unsigned",'comment' => '老人ID'),
        'w_id' => array('type' => "int(11) unsigned",'comment' => '员工ID'),
        'name' => array('type' => "varchar(20)",'comment' => ''),
        'sex' => array('type' => "tinyint(1)",'comment' => ''),
        'relation' => array('type' => "varchar(20)",'comment' => '关系'),
        'critcode' => array('type' => "int(11)",'comment' => '证件号码'),
        'address' => array('type' => "varchar(100)",'comment' => '住址'),
        'phone' => array('type' => "varchar(11)",'comment' => ''),
        'is_client' => array('type' => "tinyint(1)",'comment' => '是否是委托人(1.是、2.不是)'),
        'is_talk' => array('type' => "tinyint(1)",'comment' => '是否欠费(1.否、2.是)'),
        'status' => array('type' => "tinyint(1)",'comment' => '是否删除(1.否、2.是)'),
        'created' => array('type' => "int(11)",'comment' => ''),
        'updated' => array('type' => "int(11)",'comment' => ''),
    );
    public $pk = 'id';
}
?>
